package com.chuangdun.flutter.plugin.flutter_alarm_example

import android.content.Intent
import android.os.Bundle
import com.chuangdun.flutter.plugin.alarm.AlarmRestoreService
import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val intent = Intent(this, AlarmRestoreService::class.java)
        intent.action = AlarmRestoreService.ACTION_RESTORE_ALARMS
        startService(intent)
    }
}
